package cn.stylefeng.guns.modular.business.frequency.financesettlement.service;

import cn.stylefeng.guns.core.pojo.page.PageResult;
import cn.stylefeng.guns.core.pojo.response.ResponseData;
import cn.stylefeng.guns.modular.business.frequency.finance.model.result.PkgFinanceSettlement;
import cn.stylefeng.guns.modular.business.frequency.financesettlement.entity.FinanceSettlement;
import cn.stylefeng.guns.modular.business.frequency.financesettlement.model.param.FinanceSettlementDTO;
import cn.stylefeng.guns.modular.business.frequency.financesettlement.model.param.FinanceSettlementParam;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 订单财务结算表（日记账） 服务类
 *
 * @author yujie
 * @date 2023/05/09 17:17
 */
public interface FinanceSettlementService extends IService<FinanceSettlement> {

    /**
     * 分页查询订单财务结算表（日记账）
     *
     * @author yujie
     * @date 2023/05/09 17:17
     */
    PageResult<FinanceSettlement> page(FinanceSettlementParam financeSettlementParam);

    /**
     * 查询所有订单财务结算表（日记账）
     *
     * @author yujie
     * @date 2023/05/09 17:17
     */
    List<FinanceSettlement> list(FinanceSettlementParam financeSettlementParam);

    /**
     * 添加订单财务结算表（日记账）
     *
     * @author yujie
     * @date 2023/05/09 17:17
     */
    void add(FinanceSettlementParam financeSettlementParam);

    /**
     * 删除订单财务结算表（日记账）
     *
     * @author yujie
     * @date 2023/05/09 17:17
     */
    void delete(FinanceSettlementParam financeSettlementParam);

    /**
     * 编辑订单财务结算表（日记账）
     *
     * @author yujie
     * @date 2023/05/09 17:17
     */
    void edit(FinanceSettlementParam financeSettlementParam);

    /**
     * 查看详情订单财务结算表（日记账）
     *
     * @author yujie
     * @date 2023/05/09 17:17
     */
    FinanceSettlement detail(FinanceSettlementParam financeSettlementParam);

    /**
     * 修改状态（字典 0正常 1停用 2删除）
     *
     * @author yujie
     * @date 2023/05/09 17:17
     */
    void changeStatus(FinanceSettlementParam financeSettlementParam);

    ResponseData getFinanceSettlementList(Page<Object> defaultPage, FinanceSettlementDTO financeSettlementDTO);

    PkgFinanceSettlement getFinanceSettlementDetail(String id);

    boolean checkFinanceSettlementAdd(FinanceSettlement financeSettlement, StringBuilder errorMsg);

    void addFinanceSettlement(FinanceSettlement financeSettlement);

    void exportExcel(FinanceSettlementDTO financeSettlementDTO, HttpServletResponse response);
}